package com.elder.business.service;

import java.util.List;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.elder.business.domain.ApartmentBanner;
import com.elder.business.domain.ElderlyStatisticsDTO;
import com.elder.business.domain.Elderlyapartment;
import com.elder.common.core.domain.AjaxResult;
import com.elder.common.core.page.TableDataInfo;

/**
 * 公寓信息Service接口
 * 
 * @author zyk
 * @date 2023-11-26
 */
public interface IElderlyapartmentService 
{
    /**
     * 查询公寓信息
     * 
     * @param apartmentId 公寓信息主键
     * @return 公寓信息
     */
    public JSONObject selectElderlyapartmentByApartmentId(Long apartmentId);

    /**
     * 查询公寓信息列表
     * 
     * @param elderlyapartment 公寓信息
     * @return 公寓信息集合
     */
    public List<JSONObject> selectElderlyapartmentList(Elderlyapartment elderlyapartment);

    /**
     * 新增公寓信息
     * 
     * @param elderlyapartment 公寓信息
     * @return 结果
     */
    public int insertElderlyapartment(Elderlyapartment elderlyapartment);

    /**
     * 修改公寓信息
     * 
     * @param elderlyapartment 公寓信息
     * @return 结果
     */
    public int updateElderlyapartment(Elderlyapartment elderlyapartment);

    /**
     * 批量删除公寓信息
     * 
     * @param apartmentIds 需要删除的公寓信息主键集合
     * @return 结果
     */
    public int deleteElderlyapartmentByApartmentIds(Long[] apartmentIds);

    /**
     * 删除公寓信息信息
     * 
     * @param apartmentId 公寓信息主键
     * @return 结果
     */
    public int deleteElderlyapartmentByApartmentId(Long apartmentId);

    public JSONArray getAllElderApartment();

    public ElderlyStatisticsDTO getApartmentStatistics();

    public TableDataInfo getApartmentBannerList();

    JSONObject getApartmentBanner(Long bannerId);

    AjaxResult addApartmentBanner(ApartmentBanner banner);

    AjaxResult updateApartmentBanner(ApartmentBanner banner);

    AjaxResult delApartmentBanner(Long bannerId);

    JSONObject getElderApartMentRoomBedList();

    JSONObject getRoomType();
}
